package com.mapper;

import com.entity.RoleApplication;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName: RoleApplicationMapper
 * Description:
 *
 * @author L_Z_R
 * @version 1.0
 * @create 2025/06/18 15:33
 */
@Mapper
public interface RoleApplicationMapper {
    /**
     * 插入角色申请信息
     *
     * @param roleApplication 角色申请信息
     */
    void insertRoleApplication(RoleApplication roleApplication);

    /**
     * 查询所有角色申请信息
     *
     * @return 所有角色申请信息
     */
    List<RoleApplication> getAllRoleApplications();

    /**
     * 根据Id审核角色申请信息
     *
     * @param accountId 用户Id
     */
    void auditRoleApplication(@Param("accountId") Integer accountId,@Param("status") Byte status,
                              @Param("rejectReason") String rejectReason);
}
